package com.carkeeper.common.exception;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class LeadNewsException extends RuntimeException {
    private Integer status;//状态码
    private String  message;//处理信息

    public LeadNewsException(AppHttpCodeEnum appHttpCodeEnum) {
        super(appHttpCodeEnum.getMessage());
        this.status = appHttpCodeEnum.getCode();
    }

    public Integer getStatus() {
        return status;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
